/* 通用样式 */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

ul {
	list-style: none;
}

/* 全局变量和公共样式 */
.w {
	width: var(--w);
	margin: 0 auto;
}

.tongan {
	min-width: var(--w);
}

:root {
	--w: 1230px;
	--primary-color: #666;
	--secondary-color: #80c2cc;
	--accent-color: #ff6700;
	--light-gray: #f5f5f5;
	--medium-gray: #e0e0e0;
	--dark-gray: #333;
	--font-family: 'Open Sans', sans-serif;
}

html {
	scroll-behavior: smooth;
	background-color: var(--light-gray);
	font-family: var(--font-family);
}

/* 清除浮动 */
.clearfix::after {
	content: "";
	display: table;
	clear: both;
}

/* 头部样式 */
.top-bar {
	height: 40px;
	background: linear-gradient(to bottom, var(--primary-color), #555);
	display: flex;
	align-items: center;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
}

.top-nav-wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 100%;
}

/* 导航条左边 */
.top-nav-left {
	height: 100%;
	margin: 0 20px;
	display: flex;
	align-items: center;
}

.top-nav-left>ul {
	display: flex;
	height: 100%;
}

.top-nav-left>ul>li {
	margin-right: 20px;
}

.top-nav-left a {
	text-decoration: none;
	color: var(--secondary-color);
	font-size: 12px;
	transition: color 0.3s ease;
	font-weight: 600;
}

.top-nav-left a:hover {
	color: var(--accent-color);
}

/* 导航条右边 */
.top-nav-right {
	height: 100%;
	margin: 0 20px;
	display: flex;
	align-items: center;
}

.top-nav-right>ul {
	display: flex;
	align-items: center;
	height: 100%;
}

.top-nav-right>ul>li {
	position: relative;
	margin-left: 20px;
}

.top-nav-right a {
	text-decoration: none;
	color: var(--secondary-color);
	font-size: 12px;
	transition: color 0.3s ease;
	font-weight: 600;
}

.top-nav-right a:hover {
	color: var(--accent-color);
}

.top-nav-right>ul>span {
	display: inline-block;
	height: 20px;
	border-left: 1px solid var(--dark-gray);
	margin: 0 10px;
}

.right-img {
	width: 180px;
	position: absolute;
	border: 1px solid var(--medium-gray);
	top: 100%;
	left: -50%;
	display: none;
	background-color: #fff;
	text-align: center;
	z-index: 99;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	padding: 10px;
	transition: opacity 0.3s ease;
}

.top-nav-right img {
	width: 80%;
	height: auto;
	margin-top: 10px;
}

.top-nav-right p {
	font-size: 12px;
	line-height: 160%;
	margin-top: 5px;
}

.top-nav-right>ul>li:hover .right-img {
	display: block;
	opacity: 1;
}

.list-title {
	position: relative;
}


.list-title:hover .list-wrapper {
	display: block;
}

.list-wrapper {
	position: absolute;
	top: 100%;
	right: -10%;
	width: 300px;
	background-color: #fff;
	z-index: 10000;
	display: none;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	padding: 10px;
	transition: opacity 0.3s ease;
}

.list-wrapper img {
	width: 30%;
	height: auto;
	float: left;
	margin-right: 10px;
}

.list-wrapper div span {
	display: block;
	margin-bottom: 5px;
}

.list {
	clear: both;
	margin-top: 10px;
}

.list li {
	margin-bottom: 5px;
}

.list li a {
	display: block;
	color: var(--dark-gray);
	padding: 5px;
	transition: background-color 0.3s ease;
}

.list li a:hover {
	background-color: var(--medium-gray);
}

/* 第二部分 */
.nav-bar {
	height: 80px;
	background-color: #fff;
	position: relative;
	box-sizing: border-box;
	padding: 20px 0;
	margin-top: 40px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* logo */
.nav-logo {
	width: auto;
	height: 100%;
	float: left;
	display: flex;
	align-items: center;
}

.nav-logo img {
	height: 50px;
	width: 116px;
	background-size: auto 50px;
	margin-left: 20px;
}

:root {
	--medium-gray: #e0e0e0;
	--accent-color: #ff6700;
}

.search input[type="text"] {
	height: 50px;
	width: 300px;
}

.search button[type="submit"] {
	width: 50px;
	height: 50px;
	background-color: #fff;
	border: 1px solid var(--medium-gray);
	cursor: pointer;
	transition: all 0.3s ease;
}

.search button[type="submit"]:hover {
	background-color: var(--accent-color);
	color: white;
	border: 1px solid var(--accent-color);
}

/* 一级菜单 */
.menu-wrapper-left {
	float: left;
	height: 50px;
	display: flex;
	align-items: center;
}

.menu-wrapper-left>ul {
	height: 100%;
	box-sizing: border-box;
	margin-left: 20px;
	display: flex;
}

.menu-wrapper-left>ul>li {
	display: inline-block;
	padding: 10px 0;
	text-align: center;
	margin-right: 20px;
}

.menu-wrapper-left>ul>li:hover {
	border-bottom: 5px solid var(--accent-color);
	color: var(--accent-color);
}

.menu-wrapper-left>ul>li>a:hover {
	color: var(--accent-color);
}

.menu-wrapper-left a {
	display: block;
	margin: 0 10px;
	font-size: 14px;
	text-decoration: none;
	color: var(--dark-gray);
}

.menu-wrapper-left div {
	position: absolute;
	width: 100%;
	top: 100%;
	left: 0;
	height: 0;
	overflow: hidden;
	background-color: #fff;
	transition: height 0.4s ease;
	z-index: 1111111111111111111111111111111111111111;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 二级菜单 */
ul.menu-main {
	font-size: 0;
	height: 0;
	box-sizing: border-box;
}

ul.menu-main>li {
	width: calc(100% / 5);
	box-sizing: border-box;
	display: inline-block;
	padding: 20px;
}

ul.menu-main>li>a>p {
	font-size: 10px;
	color: var(--dark-gray);
}

ul.menu-main>li>a>img {
	height: auto;
	width: 50%;
	border-radius: 4px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-wrapper-left>ul>li:hover>div {
	height: 170px;
	border: 1px solid var(--medium-gray);
	border-top: none;
	z-index: 11111111111111111111111;
}

.menu-wrapper-right {
	float: right;
	height: 50px;
	margin-right: 10px;
	display: flex;
	align-items: center;
}

.menu-wrapper-right>ul {
	height: 100%;
	box-sizing: border-box;
	margin-left: 20px;
	display: flex;
}

.menu-wrapper-right>ul>li {
	display: inline-block;
	padding: 10px 0;
	text-align: center;
	margin-left: 20px;
}

.menu-wrapper-right>ul>li:hover {
	color: var(--accent-color);
}

.menu-wrapper-right>ul>li>a:hover {
	color: var(--accent-color);
}

.menu-wrapper-right a {
	display: block;
	margin: 0 10px;
	font-size: 14px;
	text-decoration: none;
	color: var(--dark-gray);
}

.menu-wrapper-right>ul::before {
	content: "";
	height: 100%;
	border: 1px solid var(--medium-gray);
	margin-right: 5px;
}

/* 轮播图 */
.swiper-wrapper {
	position: relative;
	height: 600px;
	width: 100%;
}

.swiper-wrapper>span {
	display: inline-block;
	position: absolute;
	padding: 10px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 100000000000;
	background-color: rgba(0, 0, 0, 0.7);
	color: #fff;
	font-size: 50px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.swiper-wrapper>span:hover {
	background-color: rgba(0, 0, 0, 0.9);
}

span.prev {
	left: 0;
}

span.next {
	right: 0;
}

ul.swiper {
	position: relative;
	width: 100%;
	height: 100%;
}

ul.swiper>li {
	position: absolute;
	top: 0;
	left: 0;
	transition: all 0.2s;
	opacity: 0;
	z-index: 100;
}

ul.swiper>li.show {
	z-index: 100000;
	display: block;
	opacity: 1;
}

ul.swiper-indicators {
	position: absolute;
	bottom: 150px;
	right: 50%;
	transform: translateX(-50%);
	z-index: 10000000;
	display: flex;
	justify-content: center;
}

ul.swiper-indicators>li {
	height: 10px;
	width: 10px;
	margin: 0 5px;
	border-radius: 10px;
	background-color: var(--dark-gray);
	cursor: pointer;
	transition: background-color 0.3s ease;
}

ul.swiper-indicators>li.active {
	background-color: var(--white);
}

.menu-price {
	font-size: 0;
	text-align: justify;
	margin-top: 20px;
}

.menu-price>div {
	box-sizing: border-box;
	display: inline-block;
	width: calc((100% - 30px) / 3);
	text-align: center;
	margin-top: 10px;
	vertical-align: top;
	background-color: #fff;
	padding: 10px;
	border-radius: 4px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
}

.menu-price>div:hover {
	transform: translateY(-5px);
}

.menu-price>div>a {
	display: block;
	width: 100%;
	height: 200px;
	box-sizing: border-box;
	padding: 10px 5px;
}

.menu-price>div>a>img {
	width: auto;
	height: 100%;
	border-radius: 4px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-price h5 {
	font-size: 20px;
	margin-left: 20px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: var(--dark-gray);
}

.menu-price p {
	font-size: 10px;
	margin-top: 10px;
	color: var(--dark-gray);
}

.menu-price span {
	display: block;
	font-size: 14px;
	color: var(--accent-color);
	margin-top: 10px;
}

.menu-price button {
	width: 100px;
	height: 40px;
	margin: 10px 0;
	border: none;
	background-color: var(--accent-color);
	color: #fff;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.menu-price button:hover {
	background-color: #ff832b;
	transform: scale(1.05);
}

.sort-wrapper {
	background-color: #fff;
	height: 40px;
	display: flex;
	align-items: center;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	margin-top: 20px;
}

.sort-item {
	line-height: 40px;
	margin-left: 40px;
	cursor: pointer;
	color: var(--dark-gray);
	transition: color 0.3s ease;
}

.sort-item:hover {
	color: var(--accent-color);
}

i {
	display: none;
}

.active {
	color: var(--accent-color);
}

.search {
	float: right;
	margin-right: 20px;
}

.asc>i.icon-sort-down {
	display: inline;
}

.desc>i.icon-sort-up {
	display: inline;
}

ul.tab-title {
	position: fixed;
	top: 50%;
	transform: translateX(-50%);
	left: 40px;
}

ul.tab-title>li {
	height: 40px;
	width: 40px;
	font-size: 12px;
	text-align: center;
	transition: all 0.2s;
	border-bottom: 1px solid var(--medium-gray);
}

ul.tab-title>li>a {
	display: block;
	height: 100%;
	text-decoration: none;
	color: var(--dark-gray);
	line-height: 40px;
	transition: background-color 0.3s ease, color 0.3s ease;
}

ul.tab-title>li.active {    background-color: var(--accent-color);
}

ul.tab-title>li.active>a {
	color: var(--light-gray);
}

ul.tab-title>
	/* ...前面已有代码保持不变... */

ul.tab-title {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	left: 40px;
	z-index: 10;
}

ul.tab-title>li {
	height: 40px;
	width: 40px;
	font-size: 12px;
	text-align: center;
	transition: all 0.2s;
	border-bottom: 1px solid var(--medium-gray);
	background-color: var(--light-gray);
}

ul.tab-title>li>a {
	display: block;
	height: 100%;
	text-decoration: none;
	color: var(--dark-gray);
	line-height: 40px;
	transition: backgroundcolor 0.3s ease, color 0.3s ease;
}

ul.tab-title>li:hover {
	background-color: var(--medium-gray);
}

ul.tab-title>li.active {
	background-color: var(--accent-color);
}

ul.tab-title>li.active>a {
	color: var(--white);
}

/* 底部样式 */
.bottom-wrapper {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 20px;
	margin-top: 30px;
	padding: 30px 0;
	border-top: 1px solid var(--medium-gray);
	background-color: var(--light-gray);
}

.bottom {
	margin-top: 0;
}

.bottom h4 {
	font-size: 14px;
	margin-bottom: 10px;
	color: var(--dark-gray);
	font-weight: 600;
}

.bottom a {
	text-decoration: none;
	color: var(--dark-gray);
	font-size: 12px;
	transition: color 0.3s ease;
}

.bottom a:hover {
	color: var(--accent-color);
	text-decoration: underline;
}

.bottom li {
	margin-bottom: 5px;
}

.bottom img {
	width: 100%;
	height: auto;
	border-radius: 4px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bottom p {
	margin-top: 10px;
	font-size: 10px;
	color: #b0b0b0;
}

.bottom button {
	width: 100px;
	height: 40px;
	color: var(--dark-gray);
	margin-top: 10px;
	font-size: 12px;
	background-color: var(--light-gray);
	border: 1px solid var(--medium-gray);
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.bottom button:hover {
	background-color: var(--medium-gray);
}

.ricker {
	width: 20px;
	height: 50px;
	position: fixed;
	bottom: 10px;
	right: 10px;
	text-align: center;
}

.ricker>a {
	color: var(--dark-gray);
	text-decoration: none;
	font-size: 12px;
	display: block;
	background-color: var(--light-gray);
	border: 1px solid var(--medium-gray);
	border-radius: 4px;
	padding: 5px;
	transition: color 0.3s ease, background-color 0.3s ease;
}

.ricker>a:hover {
	color: var(--write);
	background-color: var(--accent-color);
	border-color: var(--accent-color);
}

#pagebox {
	text-align: center;  /* 子元素水平居中 */
}
.layui-laypage {
	float: none !important;
	display: inline-block;
}